<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with kinect 2 - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=kinect+2</link>
      <pubDate>Sun, 08 Aug 2021 20:46:47 +0000</pubDate>
         <description>Tagged with kinect 2 - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/taggedkinect+2/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>OpenCV with OpenKinect and Xbox Kinect V2</title>
      <link>https://forum.processing.org/two/discussion/18149/opencv-with-openkinect-and-xbox-kinect-v2</link>
      <pubDate>Mon, 12 Sep 2016 13:20:32 +0000</pubDate>
      <dc:creator>mindcraft</dc:creator>
      <guid isPermaLink="false">18149@/two/discussions</guid>
      <description><![CDATA[<p>hi everyone,</p>

<p>i am trying build a face detection with the opencv and openkinect libraries. for the image input i want to use the xbox kinect v2. i am basing my code on the face detection example.</p>

<p>this is my code so far:</p>

<pre>
import gab.opencv.*;
import java.awt.Rectangle;

/* KINECT */
import org.openkinect.freenect.*;
import org.openkinect.freenect2.*;
import org.openkinect.processing.*;

OpenCV opencv;
Kinect2 kinect2;

Rectangle[] faces;

void setup() {
  opencv = new OpenCV(this, 640/2, 480/2);
  size(640, 480);
  // Kinectv2
  kinect2 = new Kinect2(this);
  kinect2.initVideo();
  kinect2.initDevice();
  
  opencv.loadCascade(OpenCV.CASCADE_FRONTALFACE);  
  faces = opencv.detect();
}

void draw() {
  opencv.loadImage(kinect2.getVideoImage());
  image(kinect2.getVideoImage(), 0, 0, 640, 480);

  noFill();
  stroke(0, 255, 0);
  strokeWeight(3);
  for (int i = 0; i &lt; faces.length; i++) {
    rect(faces[i].x, faces[i].y, faces[i].width, faces[i].height);
  }
}
</pre>

<p>the problem seems to be in the line "opencv.loadImage(kinect2.getVideoImage());" since the detection does not work.
when working with the isight camera (using the build-in function "capture" and "video"-add-on) instead of kinect everything works perfectly fine.</p>

<p>can anyone help?</p>
]]></description>
   </item>
   <item>
      <title>Bruch - An Interactive Installation about the Destruction of Cultural Heritage in Syria</title>
      <link>https://forum.processing.org/two/discussion/16931/bruch-an-interactive-installation-about-the-destruction-of-cultural-heritage-in-syria</link>
      <pubDate>Wed, 01 Jun 2016 13:11:13 +0000</pubDate>
      <dc:creator>Moritz</dc:creator>
      <guid isPermaLink="false">16931@/two/discussions</guid>
      <description><![CDATA[<p><span class="VideoWrap"><span class="Video YouTube" id="youtube-jdJ0faRhy3w"><span class="VideoPreview"><a href="http://youtube.com/watch?v=jdJ0faRhy3w"><img src="http://img.youtube.com/vi/jdJ0faRhy3w/0.jpg" width="640" height="385" border="0" /></a></span><span class="VideoPlayer"></span></span></span></p>

<p>This was a work from last year, wholly done in Processing. It was the first bigger project for me and has been a really great experience, especially working together with people from other fields such as architecture and communications design.</p>

<p>The interactive installation Bruch (in engl.: crack) makes visitors feel the destruction of millenniums-old artifacts and therefore Syrian cultural history itself. A lone showcase is situated in the middle of the room - its glass destroyed, its content missing - highlighted only by a dim spotlight.
Mirroring the shape of the showcase, gauze screens are positioned within some distance around it. Visitors walking towards the real showcase are thereby entering another, virtual scenario made out of gauze on which virtual glass is projected. Upon entering, the glass begins to crack at the position of the visitor. If they come closer to the gauze screen it breaks, revealing images of destroyed artifacts and buildings, illicit excavations and videos of Daesh destroying cultural artifacts.</p>

<p>Three Microsoft Kinect V2s - mounted on top of the gauze screens - track the visitors in real time using a custom made tracking tool which feeds its data to the animation. Here, Voronoi Diagrams are calculated and only shown when the visitor stands in front of the gauze screen giving the impression of glass cracking at his or her position. Box2D, a Physics Engine for Games, is used to let the glass drop slowly to the ground or explode in a sudden burst when the visitor gets too close to the screen.</p>

<p>This interactive installation was presented as part of an archaeological exhibition „Tell Genderes - 20 Meter Menschheitsgeschichte“ about the Syrian settlement mound Tell Genderes (<a href="http://tell-genderes.de" target="_blank" rel="nofollow">http://tell-genderes.de</a>). The exhibition took place during 12/2015 and 01/2016 in the BildungsTURM Konstanz in Konstanz, Germany and was a result of an ongoing cooperation between the University of Konstanz and the HTWG Konstanz.</p>
]]></description>
   </item>
   <item>
      <title>Kinect v2 + JBullet + Windows 8</title>
      <link>https://forum.processing.org/two/discussion/14548/kinect-v2-jbullet-windows-8</link>
      <pubDate>Wed, 20 Jan 2016 04:54:47 +0000</pubDate>
      <dc:creator>_simonbiggs_</dc:creator>
      <guid isPermaLink="false">14548@/two/discussions</guid>
      <description><![CDATA[<p>I have a Kinect V1/JBullet/Processing 2.0b6 system running on Mac OS (multiple versions). I'm now trying to get Kinect V2 to work with JBullet using the bRigid wrapper in Processing 2 on a Windows 8.1 machine. However, the Kinect library seems to only want to work in Processing 3 and bRigid in Processing 2. The issue seems to be with a Java dependency in the Kinect library (requires 1.7, not 1.6). Has anybody found a work around for this?</p>
]]></description>
   </item>
   <item>
      <title>Chroma keying with kinect v2</title>
      <link>https://forum.processing.org/two/discussion/13757/chroma-keying-with-kinect-v2</link>
      <pubDate>Thu, 03 Dec 2015 06:11:06 +0000</pubDate>
      <dc:creator>nappa</dc:creator>
      <guid isPermaLink="false">13757@/two/discussions</guid>
      <description><![CDATA[<p>I want to do chroma keying.
I can do chroma keying with kinect v1.
but can't do with kinect v2.</p>

<p>I use kinect PV2 version 0.7.5.
This library is very great.
unfortunately,CoordinateMapperRGBDepth, example broken, check 0.7.2 version.
I wish for kinect PV2 to update.</p>

<p>Please tell me anothe way.</p>

<p>windows 8.1
prosessing 3</p>
]]></description>
   </item>
   <item>
      <title>Kinect v.2 on Mac - Device connection failure</title>
      <link>https://forum.processing.org/two/discussion/12945/kinect-v-2-on-mac-device-connection-failure</link>
      <pubDate>Sun, 11 Oct 2015 12:43:18 +0000</pubDate>
      <dc:creator>MrOuiOui</dc:creator>
      <guid isPermaLink="false">12945@/two/discussions</guid>
      <description><![CDATA[<p>Hello!
I just got a hold of a Kinect v.2 and I'm trying out Shiffman article on the subject:
<a rel="nofollow" href="http://shiffman.net/p5/kinect/">http://shiffman.net/p5/kinect/</a></p>

<p>I'v copy pasted this code now just to see if the connections are ok, but I am getting an error that I am unsure of.
I am currently on an MacBook Pro 2011 that doesn't have USB 3, but I can still connect USB 3 devices on it. Could this be related to that?</p>

<p>...
    Init Kinect2 
    [Freenect2Impl] enumerating devices...
    [Freenect2Impl] 7 usb devices connected
    [Freenect2Impl] found valid Kinect v2 <a href="/two/profile/250">@250</a>:7 with serial 035701545147
    [Freenect2Impl] found 1 devices
    1 Device Connected!
    [OpenCLDepthPacketProcessor::listDevice]  devices:
      0: Intel(R) Core(TM) i7-2820QM CPU @ 2.30GHz (CPU)[Intel]
      1: ATI Radeon HD 6750M (GPU)[AMD]
    [OpenCLDepthPacketProcessor::init]  selected device: ATI Radeon HD 6750M (GPU)[AMD]
    Devce: 0
    [Freenect2Impl] enumerating devices...
    [Freenect2Impl] 7 usb devices connected
    [Freenect2Impl] found valid Kinect v2 <a href="/two/profile/250">@250</a>:7 with serial 035701545147
    [Freenect2Impl] found 1 devices
    [Freenect2DeviceImpl] opening...
    [Freenect2DeviceImpl] closing...
    [Freenect2DeviceImpl] deallocating usb transfer pools...
    [Freenect2DeviceImpl] closing usb device...
    [UsbControl::claimInterfaces(IrInterfaceId)] failed! libusb error -3: LIBUSB_ERROR_ACCESS
    [Freenect2DeviceImpl] closed
    [Freenect2DeviceImpl] failed to open Kinect v2 <a href="/two/profile/250">@250</a>:7!
    no device connected or failure opening the default one!</p>

<p>It seems that the Kinect is recognised ok, but I still get:
    ...
    [UsbControl::claimInterfaces(IrInterfaceId)] failed! libusb error -3: LIBUSB_ERROR_ACCESS
    ...
    no device connected or failure opening the default one!</p>

<p>Just need help narrowing down my search as I don't have any other hardware to test it on.
Is it just the USB3 problem?</p>

<p>Thanks,
Franck :)</p>
]]></description>
   </item>
   <item>
      <title>p5.js Kinect v2</title>
      <link>https://forum.processing.org/two/discussion/13421/p5-js-kinect-v2</link>
      <pubDate>Fri, 06 Nov 2015 19:35:38 +0000</pubDate>
      <dc:creator>outlinegorilla</dc:creator>
      <guid isPermaLink="false">13421@/two/discussions</guid>
      <description><![CDATA[<p>hello there.
I have a kinect v2. i can make it the default camera, and p5.js reads it, but no mic : (
the audioIn doesnt. when i connect kinect v2 the mic is not read by p5.js
any help?</p>
]]></description>
   </item>
   <item>
      <title>How to calculate distance between usermap and an object on Kinect2 ?</title>
      <link>https://forum.processing.org/two/discussion/12482/how-to-calculate-distance-between-usermap-and-an-object-on-kinect2</link>
      <pubDate>Sat, 12 Sep 2015 14:12:02 +0000</pubDate>
      <dc:creator>knarlevrai</dc:creator>
      <guid isPermaLink="false">12482@/two/discussions</guid>
      <description><![CDATA[<p>Hello there,
I wrote a simple program I needed 6 months ago with K1: calculate "usermap" &gt; draw particles in the scene &gt; if the distance between the silhouette [userMapX &amp; userMapY] and a particle is less than 10px, particles color is green, else particles color is red.
Now I'm trying to achieve the same thing with <strong>Kinect 2 and the lib KinectPV2 on Processing 3</strong> but I feel a little bit stuck here. I wrote a code to test it, it's suppose to change the color of a square if the distance between the usermap and the square is less than 20 (see variable f). If you test it, you will see that the square changes color depending on the way you move with the kinect, but it doesn't match with the body tracked.. Any advice or help with this ?</p>

<p>Charles -</p>

<pre lang="processing">

    import KinectPV2.*;
    KinectPV2 kinect;
    int f = 20;
    float dist;
    int c;
    boolean detect;
    
    void setup() {   
      size(512, 424);
      frameRate(30);
      kinect = new KinectPV2(this);   
      kinect.enableBodyTrackImg(true);
      kinect.enableDepthImg(false);
      kinect.init();
    }  
    
    void draw() {   
    background(255);    
    image(kinect.getBodyTrackImage(), 0, 0);   
    image(kinect.getDepthImage(), 0, 0);
    int [] rawData = kinect.getRawBodyTrack();
    
    //For 1/8 of my pixels
    for (int i = 0; i &lt; rawData.length; i +=2){
    
      //if pixel is part of the user
      if (rawData[i] != 255){
         float x = (i%width)+1;
         float y = int(i/height);
        
        //draw body with blue lines
        stroke(0,0,255);
        line(x,y,x,y);
    
        //calculate distance between usermapx, usermapy, and rectangle position
        dist = dist(x,f,y,f);
        //if collision found, rectangle is green 
        if (dist &lt; = f) {
         detect=true;
         //else, red
        } else{
          detect=false;
        }
      }
    
    }
    if (detect == false){
      c = color(255,0,0);
    }
    
    if (detect == true){
     c =  color(0,255,0);
    }
    
    pushMatrix();
    fill(c);
    rect(f,f,50,50);
    popMatrix();
    } 
</pre>
]]></description>
   </item>
   <item>
      <title>kinect v.2 through Processing</title>
      <link>https://forum.processing.org/two/discussion/11622/kinect-v-2-through-processing</link>
      <pubDate>Wed, 08 Jul 2015 21:42:57 +0000</pubDate>
      <dc:creator>viscepatik</dc:creator>
      <guid isPermaLink="false">11622@/two/discussions</guid>
      <description><![CDATA[<p>Hi everyone! We´re trying to plug kinect to windows8.1 through Processing. 
In the kinect test, USB 3.0, directX 11 and graphics card make troubles, but in computer test seems all right. 
Kinect gets loaded in the Processing console but no display, apart framerate, in screen.
We use Kinect PV2-master from Thomas Sanchez Copyright (c) 2014
Someone found same troubles?Any other useful sketch/test?
Any idea ultrawelcome!</p>
]]></description>
   </item>
   </channel>
</rss>